From: Matthieu Gallien Date: Mon, 3 Feb 2025 09:14:08 +0000 (+0100) Subject: fix setting up encryption with software based certificate storage X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~87^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b8f87134ed4723ffa1d3da4f3c1a8779c543f3d5;p=nextcloud-desktop.git fix setting up encryption with software based certificate storage some data need to be converted to or from base64 some data should not be converted clear one such place where a conversion to base64 was too much Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 5aaa40bf5..5392370c2 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1321,7 +1321,7 @@ bool ClientSideEncryption::checkPublicKeyValidity(const AccountPtr &account) con BIO_write(publicKeyBio, publicKeyPem.constData(), publicKeyPem.size()); auto publicKey = PKey::readPublicKey(publicKeyBio); - auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data.toBase64()); + auto encryptedData = EncryptionHelper::encryptStringAsymmetric(account->e2e()->getCertificateInformation(), account->e2e()->paddingMode(), *account->e2e(), data); if (!encryptedData) { qCWarning(lcCse()) << "encryption error"; return false;